package org.jeecg.modules.htxincailiao.order.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: ht_order_goods
 * @Author: jeecg-boot
 * @Date:   2022-01-05 10:21:43
 * @Version: V1.0
 */
@Data
@TableName("ht_order_goods")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ht_order_goods对象", description="ht_order_goods")
public class HTOrderGoods implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
	/**订单状态：0-待支付、1-待发货、2-待收货、3-已完成 、4-已取消*/
	@Excel(name = "订单状态：0-待支付、1-待发货、2-待收货、3-已完成 、4-已取消", width = 15, dicCode = "order_status")
	@Dict(dicCode = "order_status")
    @ApiModelProperty(value = "订单状态：0-待支付、1-待发货、2-待收货、3-已完成 、4-已取消")
    private Integer orderStatus;
	/**订单ID*/
	@Excel(name = "订单ID", width = 15)
    @ApiModelProperty(value = "订单ID")
    private String orderId;
	/**买家ID*/
	@Excel(name = "买家ID", width = 15)
    @ApiModelProperty(value = "买家ID")
    private String buyerId;
	/**店铺ID*/
	@Excel(name = "店铺ID", width = 15)
    @ApiModelProperty(value = "店铺ID")
    private String shopId;
	/**商品ID*/
	@Excel(name = "商品ID", width = 15)
    @ApiModelProperty(value = "商品ID")
    private String goodsId;
	/**物流公司ID*/
	@Excel(name = "物流公司ID", width = 15, dictTable = "ht_express_category", dicText = "name", dicCode = "id")
	@Dict(dictTable = "ht_express_category", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "物流公司ID")
    private String expressCategoryId;
	/**快递单号*/
	@Excel(name = "快递单号", width = 15)
    @ApiModelProperty(value = "快递单号")
    private String expressSn;
	/**下单时商品主图*/
	@Excel(name = "下单时商品主图", width = 15)
    @ApiModelProperty(value = "下单时商品主图")
    private String cover;
	/**店铺名*/
	@Excel(name = "店铺名", width = 15)
    @ApiModelProperty(value = "店铺名")
    private String shopName;
	/**商品名称*/
	@Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
    private String goodsName;
	/**下单时商品价格*/
	@Excel(name = "下单时商品价格", width = 15)
    @ApiModelProperty(value = "下单时商品价格")
    private BigDecimal retailPrice;
	/**商品数量*/
	@Excel(name = "商品数量", width = 15)
    @ApiModelProperty(value = "商品数量")
    private Integer quantity;
	/**逻辑删除：1表示删除，0表示未删除。*/
	@Excel(name = "逻辑删除：1表示删除，0表示未删除。", width = 15)
    @ApiModelProperty(value = "逻辑删除：1表示删除，0表示未删除。")
    private Integer isDeleted;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @TableField(exist = false)
    private Integer pageNo;

    @TableField(exist = false)
    private Integer pageSize;
}
